package com.mapbased.sfw.component;

import com.mapbased.sfw.model.LoadContext;
import com.mapbased.sfw.model.Renderable;

public class Components {

	private Components() {

	}

	public static final Components INSTANCE = new Components();

	public Renderable create(String type,LoadContext lc) {

		if (type.equalsIgnoreCase("Import")) {
			return new Import();
		}

		else if (type.equalsIgnoreCase("Insert")) {
			return new Insert();

		} else if (type.equalsIgnoreCase("Loop")) {
			return new Loop();

		} else if (type.equalsIgnoreCase("Head")) {
			return Head.INSTANCE;

		} else if (type.equalsIgnoreCase("Nav")) {
			return new Nav();


		} else if (type.equalsIgnoreCase("Import")) {

		} else if (type.equalsIgnoreCase("Import")) {

		} else if (type.equalsIgnoreCase("Import")) {

		}

		return null;
	}
}
